package cn.edu.sgu.www.mhxysy.dto.waiguan;

import cn.edu.sgu.www.mhxysy.dto.DataTransferObject;
import cn.edu.sgu.www.mhxysy.consts.CustomMessages;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
public class ColorDTO implements DataTransferObject {

    @ApiModelProperty(value = "ID")
    private Integer id;

    /**
     * 颜色名称
     */
    @NotBlank(message = "颜色名称" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "颜色名称")
    private String name;
}